TypoScript: {field:uid} replacement not working | Different CSS class per menu item

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2012-06-21T15:12:06Z Indexed on 2012/06/21 15:16 UTC
Read the original article Hit count: 147

Filed under:
|

I have a header menu and try to define different CSS classes for each item.

This is what I have:

20 = HMENU
  20 {
    special = directory
    special.value = 107
    1 = TMENU
    1 {
      wrap = <ul class="foo" id="mymenu">|</ul>
      expAll = 1
      NO = 1
      NO.allWrap = <li class="first menu_{field:uid}">|</li> || <li class="menu_{field:uid}">|</li> || <li class="last menu_{field:uid}">|</li>
    }
  }

But in the HTML output I simply get class="first menu_{field:uid}" and nothing is replaced.

© Stack Overflow or respective owner

Related posts about typo3

Related posts about typoscript